Adding tags to widgets
This documentation will guide you in tracking your views.
To display In-App Nudges
or In-Line Widgets
(such as Banners or Stories) in your app, you need to track views. By doing so, you can dynamically control the content of these elements directly from Nudge's Dashboard.
info
All tags accross your app should be unique
import 'package:nudgecore_v2/nudgecore_v2.dart';
ElevatedButton(
key: NudgeWidgetTracker.register("HeyButton"),
onPressed: () {
...
// your business logic
...
},
child: Text('Hey'),
),